Fixed the bug there current page was not being selected