fix a bug for parse, when last object is a text