Fix bug for detecting the value of Status