make sure it only checks during error