Added some error checking to 404