Corrects a mismatched variable ID