Fix bug with --app arg