Fix box rules