fix a bug about descriptor