fixed gesture bug