fixed status check bug