Fix some plugins bug.