fix issue #705