fix bug the hook method is null

fix bug the hook method is null