fixed small type validation bug