fixed the bug from disconnecting an user