Fixed a bug with R17 header version