fix some validation error