complete app.init fix