fix plugin loader