Thank you for your comment
About the problem im not sure why it happens
Lemme guess was the piece the king ?
I think so, I dont remember 😅