Fix bug whether app fails if no current service