Fix small bug in view positioning