Fix missing parameter

We need to provide a function context when calling the function