corrects the selection of circle and line

Solves #170 partially.