fix small ordering bug