fix merge bracketsfor collections.js