wrong variable used #179

wrong variable used #179