Fixed bug in plugin installation method