fix write as sudo