fixed issue #299