fixed issue #705