fix for issue #261