Fix for not handling 404 error.