Minor fix in validation