Fixes the issue (#7) where the settings were not displayed properly when reopening the settings page.