modified latestMilestone logic let a completed milestone hang around