Fixed bug with collections.