bugfix for introduce min lengths of aggregate types