fix module dependency order