Fix bug with block grid