bugfix deconnect