Fix episode ended actions.