Trying to fix pages problem