Fix error in replace example.