Fix for undefined functionName error