rules bug