Fix initialization of apps