matrix grid fix