Ensure the correctness of id and row/col