fix status ok or status bad