bugfixes in TertiaryJoiner