Fix for 404 page functionality