fix bug on collectionview generator