Fix issue with the clearing of function parameters.

Was affecting the export of modules.