fix output of prolog debug