fixed compile error in VS