Fix some bugs in the Jekejeke Prolog adapter file