Fix receiver termination condition