fixed VS compile error