Fix problem when the module is initialized multiple times