fixed redmine issue #4811