Fix object extend bug