remove references when Module is done