On the left side of the screen, you have 5 “setup”. The first one beeing Shadow the optimizer will first optimize using the shadow spec and then the holy one.
To solv this, or change the order for Holy Priest to be first or you can have an option checked: