fix to checkmate