Fix incorrect var reference