fixed up disconnect event