404 redirect now works properly