Fixing incorrect function name in error message.