fix duplicate rule name check in incremental compilation