fix curve (and same for selection)