fix status return value