Fix persp-save-state-to-file.