fixed bug with cachesocket