fix write rain total to settings