fix module id resolution