fixed wrong variable used in last commit