fixed thicken_grid method - no more access violation errors