Didn't manage to find the bug, created an easy prologTest.pl file