rects are shown correctly when being dragged in rect tool