Still have a strange bug when using extend(object, object)