Fix for --merge --write.