fixed misguided replace