fixed pinch bug