Correctly initialize EPI_t._next to 1
Fix EPI_t usage and EPI_p initialization