Fixed bugs. but the nbt system is now wonky