fixed not continue writing in SEA_OUTPUT.txt