Fix exception if app is not deployed