Fixed some bugs when duplicating clips