fix deploy script errors