fix module management