Fixed problem with appLoaded