fix for issue #268