Fixed a bug in the parser to prevent crashes when the encoded version is modified.