Fixed issue with RootViewController not being set to the initial view controller