Bug fix: Strong compression: substitutions were not properly taken into accound in the grid output.