view port bug fix