Fixed bug in Model->Collection conversion