fix typo in check macro