This `if` block seems to be the culprit.