Fix bug in the compilation of dynamic predicate rules in debug mode