Fixing a bug in reallocating fetchRemainder results too many times