We fixed the destroy frunction of structures