fixed min_wait_rejoin bug.