fix bug in class pc