fixed config saving (doesn't like float values)