fixed problem with SFML 2.0