fix in permissions plugin