fixed hook checking