[collections] Fix minor bug.