clone() bug fixed