Fix joins content for equals, hashCode and clone

Fixes #981