Fix for redmine 2.x