Error label clears when no error
Refactored Defect Detection