fix module on/off bug