Fix missing function and send the correct ref