Fix and workaround bugs in the JIProlog adapter file