fix bug of nil app when binding service