fix mismatched var names