Why are my Feature updating only after editing the feature, othershise it give an error?

Hello, I do have a cabinet drawer assembly driven by a top down carcase dimension.
I create a linear hole pattern driven by a if statement equation to get the number of hole depending on the size of the cabinet.
However, the linear pattern failed after changing the carcasse size, but as soon as the feature is edited, it works without touching anything (just open and close the feature).
Any idea how to solve it?
Thanks