Add syntax and fix bugs in some plugins