Fix incorrect static var usage