Fix case where lines in the rules/classes was doubled when using Autocreate filters. Thanks to e-gaulue for the report.