Fixed a couple of bugs related to pinch and tilt