solve bug collision