Fixed a bug with swipe back gesture