Fix bugs in nbt conversion in 1.7