fixed cloning error