Trying fix bugs on udp client/server