Fixed the warning algo for both GRL and FMD, needs more testing