attempt to fix view port with max and min scaling