fixed redmine < 2.2 issue with patch