fixed static var issue