fix invalid function name (fix #832)

Tiny fix for #832