Fix the bugs of all the classes.