fix module manager required modules function