fixed savedata_next_key, closes #1