fixed one bug when "reconnect -r"