fix for issue #956