Fix getField and putField.