Fixed NBT not being written properly