fix: should check the data type of label arguments.