fix for issue #227