Fixed a compilation error for visual studio