Fixed bug where pgns were truncated