bug fix on pre-defined error handling for 404
bug fix on pre-defined error handling for 404