fixed issue #963