fix app init