fix a bug in f669c47c1