[master] Fix join when argument is an object