fix bug on array validation for default values