fix first join regression