h: fix parsing of model numbers

Change-Id: I84f06bb064f60352f5e1b7d3a4ac34eb7a1ce2fe