Fix bug on swipe to first page