fix write backup