Fix minor bug with `app` initialize