Fixed misspelled function call

Fix for issue #2830