bounding box frame is not shown when only a rectangle is selected in rect tool