Fix save not working with Cmd+S on macOS (#1053)