fix module nesting