[#751] Changed DEFAULT_MAX_LENGTH to def