Fixed incorrect var use.