bug fix

crash on writing invalid jade format issue