fixed grid resizing and box selecting issue