small fix on Model#all for generics