fixed cloning problem