fix the order of the cd line