Fixed problems introduced in last update of swi prolog