Solution:

Please see the diagram below






Affected versions:
All