fix loadPlugin