fix locking on maxLength and disable of the field