fixing for redmine 2.4 compatability - courtesy of Jonny S