Fix the problem that wrongly saves the module handle to a local variable, not the member in the private context.