fix another bug (string replacement)