Fixed bug for pages not being found.