fix replaceAll calling