Fixed game crashing bug