hooks: fix structure