Bug fix to pgn output and web handler