fix status endpoint