fixed cloning not keeping discreteness