fix socket busy bug