fix replace call