Variable names were not consistent in flattenBrick, causing a .calcTest error
Merge branch 'fix-flattenBrick' into develop