BUG: Fix for function not found in setUserData