fixed model ordering bug