Fixing and testing join.