Fix find replace bug