fixed a small error with the status error checking