Fix app initialization
Merge pull request #59 from Soulou/fix_add_app_api

Fix app initialization