fix write dependencies