fix app struct