Fixed a bug in CustomSockets