correct issue with class var