fix typo (duplicate SUBSTITUTE_HALF)