fix for issue #274