Fix rule applied to multiple shapes