fixed extend bug