Same as https://github.com/Freeseer/freeseer/pull/413/files#r8188445.