Fixed missing function argument