fixed error with writing final ctfplotter comfile