How is this a bug? You’re completely ignoring Character Movement Component and telling the capsule to slide.
Character Movement Component