fix bugs

write in excel
Revert "fix bugs"

This reverts commit 56c918cf5f5e619d93071a0859117a5b70389184.
Revert "Revert "fix bugs""

This reverts commit ecd3a694f54b1bbb11795db90072823ff7648fd1.