bug fix in add plugins