Fixed bug related to "active" page