class object properties modification bug fixed