fixed minor first-target ordering bug