Fix a bug with 404 pages