fix some C4457 warnings