Fix crash in modjoin