fix array in grammar