fixed collision between rectangles