fix grid parser