fix bug: pad records with too few fields