fix plugin loading when installed