Fix bugs in Redmine 2.4