fixed some of the redraw errors for zoom and set grid