Fix block detection logic exception issue.