adapt @codedance 's changes to Integer parsing in parseRawField