Fixed game crashing