reparing a little bug concerning 404 and 500 pages