fix fix module logging not being removed