Fix for marking active page