fix 1840, calling unexpected argument

Addresses the bug reported in #1840 and introduced in #1823