fix _byId for Collection#model function

related to #2775 and #2755