Delete curves and re-create to prevent unwanted behaviour from other MM ...

Few minor tweaks to the MM patch to prevent possible issues with duplicate values.