fix error of validation