fixed game crashing