partially fixed for redmine 2.x
fixed for redmine 2.x (currently breaks compatibility with older
versions)