Fix calculation of sphere of influence.
Merge branch 'hotfix/hotfix2.4.1'