Fixed broken Replace