see Redmine: #1011