fixing error in pagemanager