fixing CalBlock.kind bug