Fix visual studio compiler issue