fix epi_curve