Fixed minor error in disconnect