fix object extend issue