remove int typecast in collection.load