minor bugfix in clone