add default value for length fields