Fixed bug while using page keys