fix plugins error