Getting settings saved two times in settings page with tab

The culprit is:

<?php settings_errors(); ?>

It isn’t needed and will produce a second “Settings saved.” notification if there are no errors.

Edited for formatting.