Segfault when with 4x1 grid