fix plugin loading