fix prompt link permission issue