viewport argument fix