Should have fixed incorrect variable issue.