fixing structure change on save