Fixed a small bug on header gesture