Fixed latestEp / nextEp - Bug