Fix a bug with kb-only portal