fixed bug in save/load