fix status check