updated to compatibility with redmine 2.x