Fixed undefined "app"
Merge remote-tracking branch 'upstream/master'