Fix string vs variable in uncommon codepath