Resolves a problem with -viewDidLoad