Fixed viewport error caused by rounding