Writing table now writes properly to nbt