Hi Cristian,
I've just tested with your code and it works for me: http://prntscr.com/bvyab5
Looks like the saved value doesn't have a correct format. Did you have value for the group before? Something like you set up the group, entered a value, and then changed the group settings. That probably makes the old saved data not compatible with the new settings.