fix when jbrange is 0