[elf] make sure the JOIN check actually works