Fixed initialization in engine