fixed history->episode relationship.