fixed ondisconnect