[BUGFIX] MathUtility compatibility fix

Resolves: #54985
Resolves: #52003