Fix bug validate data