fix status codes