fixed wrong var