Fixing the switching between view controllers with the Panda.