Fix activity No permission bug.