find the bugs in collision handle function