Simple rule not working right