Fixed the var references