fix 2 bugs in line selection

Created by  Kartik K. Agaram  on May 12, 2022
4NDYV4WDJWOK6PGURVVPNYEZTX7GPJC2YJ2QTW7P3X3BJBTTJLEQC
Change contents