castle bug


There are some bugs with castling, but this one I did not know. I added to to the list of known bugs. I assume it is related to the rook moving over a checked square (which should not matter). If that was not the case, I guess I have marked this bug incorrectly
Also, for clarity I want to ask if you had moved your king or rook previous in the game.

If anyone else can confirm/deny the reason for this bug is related to the threatened square the rook is passing, that would be helpful