wrong variable used here

@zabn let me know if this is not correct.