fix for flat-rate prefix rating, #24716, from #5738