fixed range grid min bug