fixbug insert type field