fix hook method