prescription update fix loop