fix for correct field lengths