fix issue #886