fix the action hook