fix some bugs

saving and loading bugs