fix issue #761