fixed for redmine 2.4.x.