fix bug in computing size of field char