[FIX]Fixed traceback for type field and yml test case..