fixes issue with clone where it was trying to also clone related objects