fix module registration