(fix) minItems and maxItems error messages, current length was undefined.