fixing unescaped ampersands