Fix https://github.com/TrinityCore/TrinityCore/issues/17635 (cherry picked from commit e96cf0b2426068947864a36eaece2a9312c0e48e)
Fix https://github.com/TrinityCore/TrinityCore/issues/17635 (cherry picked from commit e96cf0b2426068947864a36eaece2a9312c0e48e)