fixed validation of [Type]