Fix hook statements