fix silly mistake with str replacement