Another attempt at fixes for the tracebacks when running the rules.