fix module removal