fix error while showing 404 page