The process of correcting the error is very simple. Just take a scanned copy of your wife's passport along with a copy of the visa to the passport office and they will make the correction within no time.