Purge rules before applying and lint