Fixed gesture bug