close issue #764