Fix undefined wrapper variable