Fixed that check is performed after failure