Fixed bug where activeWidget wasn't being cloned properly