Fix the SFML bug