[FIX]Fixed traceback for type field.