Fix bug in toBackboneCollection