fix bug type.validate