Fix incorrect variable names