guess max_diff & fix last range skipping
guess max_diff & fix last range skipping

pluckljn/pedump,zed-0xff/pedump,xujun10110/pedump,xujun10110/pedump,pluckljn/pedump,blaquee/pedump,blaquee/pedump,zed-0xff/pedump