Fix bug: missing function parameter.