fix viewport scaling