Fix wrong var in persp-save-state-to-file.