Need connect $app for the work code.
Merge pull request #204 from sergeypavlenko/bug_collections

Need connect $app for the work code.