Fixed critical bug causing collections to have an empty model