master: fix hooks