Fixed clone element scope issue