Fixed the rootviewcontroller bug