solve bug of missing upper limit