fix extend bug

fix extend bug