fix structures not saving