This doesn't seem right to me- you're adding 4 to the max number of rows/columns for every element matrix. What is this a workaround for? Maybe we can come up with another fix that doesn't affect the rest of the codebase.