fix status code on fial