corrects the selection of circle and line