fix prolog output without n-best mode (broken in commit 5e22d19)