fixed issue in _extend where arguments object was not being passed around correctly