Fix wrong arguments to require socket