Fixed bug where unique check would overwrite all rules except unique rules