issue #22155: Fix freight function.