fix some validate errors