Bug fixes: Root namespace reference and sorting with undefined fields