fix module attributes missing bug