Fix replace with single item in Dictionary