fix grid update