Fix deconnect