Fix attr when $ collection contains text modules