Fix two bugs in the blaze process writer