fixed some warning in VS