fix viewport alignment issue. coordinates need to be floats