fixed _Originally posted by @mvadari in https://github.com/XRPLF/rippled/pull/5069#discussion_r1879144892_