quick fix for socket error