I'd say: nicht wo aber wie
When you are correcting something and replacing the first word with a correction, then the construction "not A but (instead) B" is nicht A sondern B with sondern.
Could this also work; "Nicht wo, doch wie"? Thanks
You need sondern in this kind of construction.
Ah yes! I missed this — vielen dank!