correct the bugs