possibly fix lockcode issue when cloning