fixed bug in collection view