fix pretty crucial problem with hook installer