fix checkmate