clone() bugfix