Fixed reload error for plugins.