fix app loading