Now everything should work as intended

Reset was too late and there is no "Structure" class