fix a rare FRC castling bug