fix class version update rule