fix unlimited loop in EOB