bugfix for Join
test for Join
test revision