Rule Editor not working correct