letter ordering bug fix