gamepanel bug fixing