fixed SDL_ttf seg fault issue