fix for issue #328