fix the hooks that was wrong