fix missing check inversion