write settings after clear as well