Fixed bug in processMilestones.