fixed bugs with getting kicked from server