Fix hook work.