fix errors in check throw macros