more game loop fixes