Fix for sock variable