fix #105 (string.replace used incorrectly).