Fixed bad variable name in function