bug fixed for clone