Fix hook build