Fixed bug in collection view.