Fix socket

Fixing 245, this time for real.