Fixed bug wich shows up only on Win8