bugfix of sdl 1.2