Fix errors introduced by auto-replace.