fix sdl issue