fix a bug about class and instance