fix deploy hooks