WordPress 4.1 plugin only save 1 field to database

I’ve found out that having mulitple settings_fields wouldn’t work. So in register_setting I use the same group name and now all the fields are updated correctly.

I got it from this http://www.mendoweb.be/blog/wordpress-settings-api-multiple-sections-on-same-page/