redmine bug #1061 fix