fix: some "var missing" bugs