[fix] yaml write