Fix bug with first saved app id