modify a bug in dator
modify the bug of default weight for each class