Fix the flux datasize check to detect overruns correctly