bugfix: updating layer & tdefList after adding an instance