SetLevelValue doesn't always work

 
In init() I call SetLevelValue and change the values based on some external variables chosen by the user. SetLevelValue sometimes work, sometimes has no effect at all.
Reason: