ordering bug