Fix function name. Closes #819.