Calling property on app's object is deprecated.
Merge pull request #477 from ntomka/master

Deprecated fix