Fix cake rules