Changing incorrectly named variables