revert change to checking of 'clean' state