fix lastevent in episode