fix plugins bug