fixed some VS warnings