Corrected bug in plugin for work in redmine 2.2.2