fixed issue #763