Fixed some VS warnings