fix bug where arabic setting was sometimes lost.