Fix a bug of klass accessor