Fix visual studio complication errors