fix some setting may cause problems