Fixed socket timeout error (untested, but hopefully)