fix infinite loop in recompute messages