fixes bug with writing NBT on journal