Fix settings error on production