Fix errors pointed by validator.