Next episode logic corrected