second fix for issue #688