Performance improvement when selecting episodes, fixed a bug with deleted episodes