fixed VS warnings