Fix auto-numbering problem when duplicating layers
When duplicating a layer, make the duplicate the active layer