Fix bug about types support.