fix module/dict issues