fix result exceed range bug