fix for redmine #1908