fix for cloning