fixed bug where blank strings would be printed if a rule did not exist