Fixed block size calculation issues