fix(index): fix compiler error in plugin install function