fix bad check