fix bug for starting stopping apps