fixed castling out of check