Fixed numeric bug in table generator

Fixed a bug where the numeric scale was not reading from the correct
field.