fixed issue #328