Fixed a weird compiler error in visual studio