Fix type mismatches in save file rotation