fixed init creating objects
Fix: crash when switchcontroller