Fixed incorrectly named variables