fixes 404 redirects