visual quality of the grid rendering improved, bug fix when out of range