fix for issue #224