fixed CREATE TYPE bug