fix APP bug
Merge pull request #289 from arnaudbey/fixAPP

fix APP bug