Fix bug with app_run