fix for issue #277