fixing problem in plugin loading