join: fix bug