Fixing blocks calculation