fix getSockets error