Race condition. While dragging around component(s), holding down "R" on the keyboard will rotate very quickly. This sometimes causes the hitbox to be duplicated.
When dragging starts, the code removes the component from being in the rtree, so the rotation code should probably check if the component is currently being dragged, and if it is, don't mess with the rtree.