Fixed initialization of gameobjects