Fixed issue with previous page button