fixed the sub-block worst-case memory usage calculation