fixed hook script