Wrong variable used