Fix object extend check