Fix broken var reference