Fix error when running in Redmine 2.5.1