Fix bug validate