Fix bind error in collection.js