fix mq in grid file