fix old variable problem