fixed a bug in cheat code