small fixes in view2d