The cast to the controller might be failing because of the order things are loaded. Try putting a delay at the start of beginplay or write it like this;