Fix some issues in the old slug correction script.