Fix migration issue on settings page