fix for redmine #2635

fixes redmine #2635