fixen bug in gamewindow