Bug fix in the ordered collection