fixed buggy rules