Fix attr when $ collection contains text modules
Merge pull request #402 from kpdecker/attr-text

Fix attr when $ collection contains text modules