fix bugs in save/load
better error message when trying to auto-scale with only one data point