Fix error with vars