Fix application descriptor ordering bug