fixed visual studio warnings