fixed initial grid resizing