Attempt to fix socket issues