REFACTOR: function was incorrectly called as a constructor (PR #9679)

GitHub