Fixing block maximum calculation.