Fix infinite loop if it is not exploitable.