fix bug when yaml is single mapping