Fixed improper naming of variables