fixed issue with unescaped #s