Fix length validations