fixed some viewport scaling issues