fix bug in parsing for version field