curve : another change to avoid crashs