Fix state settings.