quickfix for issue #1461

Fixes #1461.