fix broken plugin loader