fix build error in collection view support