FFMpeg kmsgrab record pixels wrong

ffmpeg -f kmsgrab -i - -framerate 60 -vf 'hwdownload,format=bgr0' -preset ultrafast out.mkv

This is how a video frame should look like kitty terminal emulator in the wayland This is how it is recorded by ffmpegkitty terminal emulator in the waylandweston-simple-egl https://drive.google.com/file/d/11jOUTk3ZxOfwnfd7zS4d4qBLApTS3Vmx/view?usp=sharing