Fix bugs in save load interface