Correct edge case where last block is closed.