writedag corrections