fix det curves