Bug fixes in UDPClientLayer