fixed wrong variable