collection.js fix