bugfix: AppCtrl called twice

Fix for issue #4