corrected bug with deactivate while plugged feature