Grid dimension fix