SessionClicks does the following check when trying to set a value to PortalPreferences:
However, "<=" is used in the condition. For example, if the "max allowed values" is 10, when there's 10 values, the "=" condition will be match, so the new value can still be added. As a result, 11 values will be added in total.
The "=" condition should be removed.