fixed when the bounding box drawing gets called