fix write alias issue