fix for vqmod duplicated replace