Fixed IOrderedEnumerable/ATE bugs.