Fix "unreferenced local function has been removed" warning.