The fix is suggested by Jacques. Pull Request: https://projects.blender.org/blender/blender/pulls/107586